<?php

	$tabelClass = new tabelClass();
	$tabelClass->connection = $conn;
	$tabelClass->widthno='3%';
	
	$arrayHeader = array("ID Pelamar","Nama","Tempat/Tgl Lahir","Status","Hasil Test");
	$arrayAlign = array("","","","","");
	$arrayWidth = array("10%","15%","10%","10%","10%");
	
	$SQL="SELECT id_pelamar, nama, CONCAT(tmp_lahir,', ',DATE_FORMAT(tgl_lahir,'%d-%m-%Y'))lahir,  
		  if(STATUS='0','Belum Diperiksa','Sudah Diperiksa'),hasil_test,id_test FROM tbltes ";
	
	$tabelClass->sql = $SQL;
	$tabelClass->index = $index;
	$tabelClass->dataPerPage = 10;
	$tabelClass->aksiAjax = "Modules/getLapHasilTes2.php?";
	$tabelClass->FormName = "FrmTblLaptes";
	$tabelClass->divAjax = "divLaptes";
	$tabelClass->showChkPanel = true;
	$tabelClass->indexEdit = "5";
	$tabelClass->showIcon = true;

	$arrayIcon[] = array("1","", "ui-icon-print", "Cetak", "prints('SubModules/print2.php','FrmTblLaptes','divLaptes',550,480)", "1");
	
	$tabelClass->arrayIcon = $arrayIcon;
	$tabelClass->field = $arrayHeader;
	$tabelClass->alignKolom = $arrayAlign;
	$tabelClass->widthKolom = $arrayWidth;
	$tabelClass->border = "0";
	$tabelClass->cellpadding = "1";
	$tabelClass->width = "100%";	
	
	$content = "";
	$OnClick = "Cari('Modules/getLapHasilTes2.php?','frmCariLaptes','divLaptes')";
	$content .= "<form name=\"frmCariLaptes\" action=\"javascript:".$OnClick."\">";
	$content .= "<table width='' border=0>";
	$content .= "<tr><td>";
	$content .= "<select name=\"kolom_cari\" id=\"kolom_cari\" >"; 
	$content .= "<option value=\"\">All</option>";
	$content .= "<option value=\"nama\">Nama</option>";
	$content .= "<option value=\"alamat\">alamat</option>";
	$content .= "</select>&nbsp;";
	$content .= "</td><td>";
	$content .= "<span id=\"divCari\">";	
	$content .= "<input type=\"text\" name=\"text_cari\" id=\"text_cari\" onclick=\"formdate('text_cari')\"/>&nbsp;";
	$content .= "<input type=\"hidden\" name=\"tipe\" value=\"0\">";
	$content .= "</span>";	
	$content .= "</td><td>";
	$content .="<a href=\"javascript:void(0)\" class=\"fg-button fg-button-icon-left ui-corner-all fg-button-bg\" OnClick=\"".$OnClick."\">";
	$content .="<span class=\"ui-icon ui-icon-search\"></span>Cari</a>";
	$content .= "<input type=\"submit\" name=\"\" value=\"Cari\" style=\"display:none;\"/>";
	$content .= "</td></tr>";
	$content .= "</table>";	
	$content .= "</form>";
	$content .= "<form name=\"".$tabelClass->FormName."\" id=\"".$tabelClass->FormName."\">";
	$content .= "<div name=\"".$tabelClass->divAjax ."\" id=\"".$tabelClass->divAjax ."\" style=\"margin-top:20px\">";
	$content .= $tabelClass->drawTabel();	
	$content .= "</div>";
	$content .= "</form>";
	return $content;

?>